angular.module("application.services", [])
.factory('searchCache', function($cacheFactory) {
	return $cacheFactory('searchData');
})

.factory('globalService', function($http, BASE_URL) {
	return {
		regisAct: function(user) {
			return $http({
				url: BASE_URL + 'user/insertUser',
				method: "POST",
				data: $.param({'user': user}),
				headers: {'Content-Type': 'application/x-www-form-urlencoded'}
			}).then(function(promise) {
				return promise.data;
			})
		}

	}
})